package com.coocaa.x.service.liteccconnecter;

import android.content.Intent;
import android.os.IBinder;

import com.coocaa.x.service.LiteBaseService;

public class LiteCCConnectorService extends LiteBaseService {
    public static final String TAG = "CCConnector";
    private LiteCCConnectorServiceStub stub = null;

    @Override
    public void onCreate() {
        super.onCreate();
        if (stub == null)
            stub = new LiteCCConnectorServiceStub(getApplicationContext());
    }

    @Override
    public void onDestroy() {
        stub.destroy();
        super.onDestroy();
    }

    @Override
    public IBinder onBind(Intent intent) {
        return stub;
    }

    @Override
    public boolean onUnbind(Intent intent) {
        stub.destroy();
        return super.onUnbind(intent);
    }
}
